 
	//跌几天升几天买入
    let buyByUpDownDay = function(selYear,i,condect,buySell,dates){
		let item = this.vo(selYear[i]);
		let upday = parseInt(this.upday);
		let downday =parseInt(this.downday);
		let rule = this.upDowDay(upday,downday,selYear,i);
		let isSmallP = this.isSmallPower(upday,downday,selYear,i);
		let persent  = 0;
		let isSmallPreYearMin =  item.close<app.preYearMin;
		//统计第一日最低值和最后一日最高值的百分比差值
		if(rule){
			let firstVal =this.vo(selYear[i-(upday+downday)+1]).max;
			let lastVal = this.vo(selYear[i-upday]).min;
		    persent  = (lastVal-firstVal)/firstVal*100;
			let threeDayDownPersent = parseFloat(this.threeDayDownPersent);
			if(threeDayDownPersent<0){
				rule = persent<threeDayDownPersent;
			}
		}
		
		if (condect.time ==0 && rule) {
			return {flag:true,str:"BD\n"};
			//this.buyHandle("BD\n"+persent.toFixed(2)+"%",condect,item,buySell,dates[i]);
		} 
	return {flag:false,str:"BD\n"};
	};